package org.alex.samples.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "exam_score")
public class ExamScore implements Serializable {

	private static final long serialVersionUID = -286505292983858815L;
	
	@Id
	@Column(name="id",nullable = false)
	private int id;
	
	@Column(name="user_id",nullable = false)
	private  String userId;
	
	@Column(name="subject_id",nullable = false)
	private int subId; 
	
	@Column(name="exam_time",nullable = false)
	private Date examTime;
	
	@Column(name="score",nullable = true)
	private double score;
	
	
	
	public ExamScore(){
		super();
	}
	public ExamScore(int id,String userId,int subId,Date examTime,double score){
		super();
		this.id=id;
		this.userId=userId;
		this.subId=subId;
		this.examTime=examTime;
		this.score=score;
		
	}
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public int getSubId() {
		return subId;
	}

	public void setSubId(int subId) {
		this.subId = subId;
	}

	public Date getExamTime() {
		return examTime;
	}

	public void setExamTime(Date examTime) {
		this.examTime = examTime;
	}

	public double getScore() {
		return score;
	}

	public void setScore(double score) {
		this.score = score;
	}

	



}
